//
//  WBNavigationController.swift
//  微博
//
//  Created by 于子浩 on 2017/5/20.
//  Copyright © 2017年 于子浩. All rights reserved.
//

import UIKit

class WBNavigationController: UINavigationController {

    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        
        
        if childViewControllers.count > 0 {
        
            viewController.hidesBottomBarWhenPushed = true
        }
        
        super.pushViewController(viewController, animated: true)
    }
    
}
